#ifndef SENSOR_SPI_H
#define SENSOR_SPI_H

#define SPI_RESET_OFFSET				0x00
#define SPI_TX_OFFSET					0x04

#define SPI_STATUS_OFFSET				0x80
#define SPI_RX_OFFSET					0x84

/*
 * map peripheral addr in linux system
*/
int sensor_config_setup(unsigned int baseAddr);

void sensor_spi_reset();

void sensor_spi_write(unsigned int TX_ADDR,unsigned int TX_DATA);

unsigned int sensor_spi_read(unsigned int RX_ADDR);

#endif // SENSOR_SPI_H
